<?php
require __DIR__.'/../MTCloud.class.php';

try{
    $MTCloud = new MTCloud();
    $res = $MTCloud->courseAdd('api测试','12345678910','2021-01-12 14:10','2021-01-12 15:00', 'wb','简介', ['departmentId' => 6, 'barrage' => 1, 'isPublic' => 1, 'robotNumber' => 1, 'robotType' => 1, 'pptDisplay' => 1]);

    var_dump($res);
}catch(MTCloudException $e){
    var_dump($e->getMessage());
}
